/**
 * Created by aperry on 24/06/2014.
 */
var assetPlusApp = angular.module('assetPlusApp', [
    'ngRoute',
    'ui.bootstrap',
    'assetPlusApp.casesControllers',
    'assetPlusApp.commonDirectives',
    'assetPlusApp.addressDirectives',
    'assetPlusApp.caseServices'
]);

assetPlusApp.config(['$routeProvider',
    function($routeProvider) {
        $routeProvider.when('/cases', {templateUrl: 'partials/case/cases.html', controller: 'casesController'});
        $routeProvider.when('/cases/:service_id', {templateUrl: 'partials/case/caseDetails.html', controller: 'caseDetailsController'});
        $routeProvider.otherwise({redirectTo: '/cases'});
    }]);